﻿namespace SqlSharp.Databases;

internal static class DbUtility
{
    public static Dictionary<string, string> ToDictionary(dynamic values)
    {
        var result = new Dictionary<string, string>();
        foreach (var item in values)
        {
            var key = item.Key;
            var value = item.Value?.ToString();
            result.Add(key, value);
        }

        return result;
    }
}